	
	<link rel="stylesheet" type="text/css" href="__PUBLIC__/css/mobile/main.css" media="all" />
	<link rel="stylesheet" type="text/css" href="__PUBLIC__/css/mobile/style.css" media="all" />
	
	<link rel="stylesheet" href="__PUBLIC__/css/mobile/iconfont/iconfont.css" type="text/css">
<!--header页头文件-->
<div class="main wd_zl">
	<ul>
		<foreach name="two_status" item="ts">
			<input type="hiddem" id="twoStatus{$key}" name="" value="">
			<li><input onclick="go_three_status(this)" data-next="{$ts.is_next}" type="checkbox" name="{$ts.id}" value="{$ts.id}"><label>{$ts.name}</label></li>
		</foreach>
	</ul>	
	
</div>
<div class="device-foot clear">
	<a onclick="status_ok()" id="submit" class="btn btn-primary">提交</a>
</div>
<script src="__PUBLIC__/js/jquery-1.10.1.min.js" type="text/javascript"></script>
<script src="__PUBLIC__/js/jquery-migrate-1.2.1.min.js" type="text/javascript"></script>
<script src="__PUBLIC__/plugins/layer/layer.min.js"></script>
<script type="text/javascript">
	function go_three_status(obj){
		var is_next = $(obj).attr("data-next");
		if (is_next == 1) {
			var id = $(obj).val();
			var url = '__MODULE__/Device/status_next/id/' + id;
			layer.open({
			  	type: 2,
			  	area: ['90%', '90%'],
			  	fixed: false, //不固定
			  	maxmin: true,
			  	content: url
			});
		}
		return false;
	}
	function status_ok(){
		var index = parent.layer.getFrameIndex(window.name);
		
		parent.layer.close(index);
		return false;
	}
</script>